//
//  UnderstandShape.swift
//  SwiftUIShape
//
//  Created by 李煜 on 2024/7/31.
//

import SwiftUI

struct UnderstandShape: View {
    var body: some View {
        Path { p in
            p.move(to: .zero)
            p.addQuadCurve(to: CGPoint(x: 200, y: 0), control: CGPoint(x: 100, y: -20))
            p.addLine(to: CGPoint(x: 200, y: 40))
            p.addLine(to: CGPoint(x: 0, y: 40))
        }
				.fill(.green)
    }
}

#Preview {
    UnderstandShape()
}
